package cn.wolfcode.service;


import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.PageResult;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IEmployeeService {
    void delete(Long id);

    void save(Employee employee, Long[] ids);

    Employee get(Long id);

    List<Employee> listAll();

    void update(Employee employee, Long[] ids);

    PageResult<Employee> query(QueryObject qo);

    Employee login(@Param("username") String username, @Param("password") String password);
    void batchDelete(List ids);

    /*Employee selectByEmpPsd(String oldPassword);

    void updateByEmpId(Employee employee);*/

    void updatePwd(String oldPassword, String newPassword);

}




